{# The Secrets and Settings pages' shared pieces, imported with context
(``writable``, ``store``): where values live, the tables by owner, and a
row's name, value and actions. A row may name its own Set label
(``set_label``). Three columns, so a long description wraps under its
name rather than pushing the row's actions out of the card. #}
{% from "components/macros/form.html" import action %}
{% from "components/macros/layout.html" import badge, card %}
{% from "components/macros/table.html" import data_table %}
{% macro name_cell(named) -%}
{{ named.name }}
{%- if named.label %}
{{ named.label }}
{% endif %} {%- endmacro %} {% macro value_cell(shown) -%}{{ shown.text }}
{{ badge(shown.source.label, shown.source.tone) }}
{%- if shown.default %}default {{ shown.default }}{% endif %}
{%- if shown.when %}{{ shown.when }}{% endif %}
{% if writable %}{{ saved }} A value set in .env still wins.
{% elif store %}Values are managed in {{ store }}: change them there. A value set in .env still wins.
{% else %}Values come from .env and the process environment, and change when the server restarts. Add the secrets component to {{ verb }} them here instead.{% endif %}